RoundRectangle Class

Draws a rectangle with rounded corners.

Events

MouseDown

MouseDrag

MouseUp


Properties

BorderWidth

FillColor

OvalHeight

OvalWidth


Methods

None

More information available in parent classes: RectControl:Control:Object

Because this is a RectControl, see the RectControl for other properties and events that are common to all RectControl objects.


Notes

Increasing the OvalWidth and OvalHeight creates rounded corners that are have a more gradual arc.


Example

The following code defines a custom RoundRectangle:

roundrectangle1.fillColor= RGB(255,0,0) //Red
roundrectangle1.ovalheight=30
roundrectangle1.ovalwidth=16
roundrectangle1.borderwidth=1

See Also

Rectangle control; RectControl class.